<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="../share/taglib.jsp" %>
<%@ include file="../share/isReadOnly.inc" %>
<html>
<head>
<title><bean:message key="display.${payTypeForm.method eq 'edit' ? 'edit' : 'add' }"/><bean:message key="info.payType"/></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="/css/vip.css" type="text/css">
<%@ include file="../share/validate.inc" %>
<script type="text/javascript">
function bodyOnLoad() {
	tt.vf.req.add('name');
	${payTypeForm.method eq 'edit' ? 'tt.validate();' : ''}
}
</script>
</head>
<body onload="bodyOnLoad();" bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<html:form action="/cms/house/payType.do" method="post"  onsubmit="return tt.validate();">
<html:hidden property="payTypeId"/>
<input type="hidden" name="method" value="${payTypeForm.method}">
<br>
  <table width="90%" border="0" cellspacing="2" cellpadding="3" align="center">
    <tr bgcolor="#ffbe26"><td colspan="2"> <font color="#000000"><bean:message key="display.${payTypeForm.method eq 'edit' ? 'edit' : 'add' }"/><bean:message key="info.payType"/>：</font></td>
    </tr>
    <tr bgcolor="f5f5f5"> 
      <td width="22%"><div align="right"><bean:message key="info.payType.field.name"/>：</div></td>
      <td width="78%"><html:text disabled="<%=isReadOnly%>" property="name" size="50" maxlength="50"/>
        <html:errors property="name"/></td>
    </tr>
    <tr bgcolor="f5f5f5"> 
      <td width="22%"><div align="right">类型：</div></td>
      <td width="78%">
      	<html:radio disabled="<%=isReadOnly%>" property="type" value="0"/><bean:message key="info.payType.type0"/>&nbsp;&nbsp;
      	<html:radio disabled="<%=isReadOnly%>" property="type" value="1"/><bean:message key="info.payType.type"/>
      </td>
    </tr>
    <tr bgcolor="f5f5f5"> 
      <td colspan="2"><div align="center"> 
          <button <%=isReadOnly ? "disabled='disabled'" : ""%> type="submit" class="frm_btn"><bean:message key="display.save"/></button>
        </div></td>
    </tr>
  </table>
</html:form>
<br>
</body>
</html>